Skip to main content

ApiPivotTable

Represents the ApiPivotTable class.

Properties

NameTypeDescription
NamestringReturns or sets a name of the pivot table.
ColumnGrandbooleanReturns or sets the Grand Totals setting for the pivot table columns.
RowGrandbooleanReturns or sets the Grand Totals setting for the pivot table rows.
DisplayFieldCaptionsbooleanReturns or sets the setting which specifies whether to display field headers for rows and columns.
TitlestringReturns or sets the pivot table title.
DescriptionstringReturns or sets the pivot table description.
StyleNamestringReturns or sets the pivot table style name.
ParentApiWorksheetReturns the parent object for the current pivot table.
ShowTableStyleRowHeadersbooleanReturns or sets the setting which specifies whether the row headers of the pivot table will be highlighted with the special formatting.
ShowTableStyleColumnHeadersbooleanReturns or sets the setting which specifies whether the column headers of the pivot table will be highlighted with the special formatting.
ShowTableStyleRowStripesbooleanReturns or sets the setting which specifies whether the background color alternation for odd and even rows will be enabled for the pivot table.
ShowTableStyleColumnStripesbooleanReturns or sets the setting which specifies whether the background color alternation for odd and even columns will be enabled for the pivot table.
SourceApiRangeReturns or sets the source range for the pivot table.
ColumnRangeApiRangenull
RowRangeApiRangenull
DataBodyRangeApiRangeReturns a Range object that represents the range of values in the pivot table.
TableRange1ApiRangenull
TableRange2ApiRangenull
GrandTotalNamestringReturns or sets the text string label that is displayed in the grand total column or row heading in the specified pivot table report.
RepeatAllLabelsbooleanSpecifies whether to repeat item labels for all pivot fields in the specified pivot table.
RowAxisLayoutobjectSets the way the specified pivot table items appear — in table format or in outline format.
LayoutBlankLinebooleanSets the setting which specifies whether to insert blank rows after each item in the pivot table.
LayoutSubtotalsbooleanSets the setting which specifies whether to show subtotals in the pivot table.
SubtotalLocationnumberSets the layout subtotal location.
PivotFieldsApiPivotField[]Returns all pivot fields in the pivot table.
ColumnFieldsApiPivotField[]Returns an array that is currently displayed as column fields in the pivot table.
DataFieldsApiPivotField[]Returns an array that is currently displayed as data fields in the pivot table.
HiddenFieldsApiPivotField[]Returns an array that represents all hidden fields in the pivot table.
VisibleFieldsApiPivotField[]Returns an array that represents all visible fields in the pivot table.
PageFieldsApiPivotField[]Returns an array that is currently displayed as page fields in the pivot table.
RowFieldsApiPivotField[]Returns an array that is currently displayed as row fields in the pivot table.

Methods